Pulling CSV-writing into one place and logging progress