Refractored getset prefs