Implement saving of configuration.