Updated all references to Preferences to use Set<Preference> instead.