Rewrite Preferences.