Added basic handshake.