Save and load functions, also saves when appropriate