Add an option to generate the report as an csv file