Implementing the connect flow