pause is supposed to be an argument to the onBeforeAction callback.