Added StartActivityForResult and SharedPreferences stuff