First draft at writing to a tempfile.
Working tempfile CSV generation.