Refactoring and basic playlists logic