Add a run_on_reactor function