Added a Pause function.