Got handshaking to work