event_callback: Keep declarations at the top