Begins the connection setup