Added automatic saving after modifications.