Add variable to determine if handshake has been performed