Added stop function to be called from outside for playback stop