Modified reading the handshake