Added FlagSet class.