Added new class to manage Prefs