Added shared preferences