Adding logging to lists and read/write to csv