Added callback handler support for before_tick, after_tick, before_run, after_run.