Improve explanation of the on_transition callback.