Make do_autosave() static.