Working on the save function to convert values