Flag select mask