Adjusted playback code