Change PrimaryFlags to SecondaryFlags