Add auto save feature.