Convert mp3 to ogg and refactor code