Added ability to pause.