Changed call to Preferences.pref