Register callbacks at fixed points in a turn to observe what the engine did, and when you need to, to steer it.