Add Service and SharedPreferences