Added sendHandshake support.