Set all flags in one operation