Added save functionality for spreadsheet.