Better on_step documentation