Putting in framework for autosave