Added autosave functionality. Preference panel hasn't been implemented
yet.