Added more details to the CSV generating code.