Added the move_on_at() and fail_at() functions (#1228)