Implementing music loop and pausing/resuming music.