Making the save mechanism