Add simple logging of data to csv.