Allow flags to be set with boolean values