Removed onActivityResult function