Create a function for the first handshake.