WIP: Almost generating output.csv