Renamed options.before to options.onEnter.
Renamed options.after to options.onExit.