Added GlobalPreferences class