Added csv output for plotter