Added pause/resume to playback