New method to write m3u