Added authentication handshake