Remove event_flags function
Automatic adjustments