Added beforeCallback and a totalPause mode to pause the pause the trip even when the trip is between steps