Added the startActivityForResult stuff