Added callbacks to the `run()` and `run_until()` functions (see #233)