Added shared preferences usage