Working on server handshake