Add CSV writing capabilities