Added Shared preferences.