Pause functionality

Closes #17