Added automatic save.