Switch to SharedPreferences.