Added autosavemap feature.