Added script exporting data to .csv.