Add pre_run and post_run event triggers