Implement CSV formatting