Added Pause function.