Makes flag binding event-driven