Filled the save and load functions