Implemented primitive version of handshake check