Using CSV writer to ensure proper formatting.