Refactored the prefs path