Add inializer to read the prefs