Added all the PreferenceManager stuff