Added autosave check