Working save and load snapshot