Updated with info about SharedPreferences usage.