Flag abstraction