Add autosave method