Added export to spreadsheet functionality