Persist settings.