Added code to send status back and forth. The app now finishes the activity when successful.