Add getPlaylistIndex and reloadPlaylist functions.