Beginning changes to logging the data in CSV format.