Actually save the main settings.