Initial non-working autosave code.