Added pause functionality. Closes #50