Use flag enum instead of bool.

To prevent Boolean Blindness.