Three-way handshake works