Add Flags support.