Started implementing client handshake