Finished export to CSV func