Added csv output for data.