Added generation of csv files