Implemented SharedPreferencesProvider.