Do the connect() to the application *after* collecting a