Added interface to shared preferences