Adding shared preferences.