Updated globals for SharedPreferences handling