Routines for saving data are working now