Allow flags to be set with array