Added functionality to the audioplayer.