Save and reset settings.