Updates settings.