Added PreferencesManager