Added ability to store user preferences using SharedPreferences