Made the backup/restore of config less hackish.