Added export to csv files to use to plotly.