Use proper type for flags