Changed use of map in csv export.