Added the playback function