Sets flags