Removed unnecessary code.
Pausing and resuming playback seems to work now