Add yield_delay to events handler