Added the data structure to Prefs