Refactored to output to csv