Added saving of configuration.