Added the ability to loop audio and pause/resume playback