Updated the csv ouput as well