Prepare for savingAbstract out common save/load functionality