Saving last changes to files.