Flags, flags, flags... Are you sure you understand how this works?