Implement the preferences.