Change flag to a bool