UPGRADE. Added SharedPreferences for folderPath