Client side handshake