Prefs in functions, LootPrefs now init correctly

lootPrefs now initialized correctly
Now set in functions