Changed output type to csv