Made a start on CSV export