Flags working