Pause is now a function passed to the onBeforeAction method.