refactored pause
Merge pull request #45 from cdallas/master

refactored pause