Playlist generated. Ugly code to be fixed