Making sure everything is saved