Fixed bug in vanillaHandshake, now it does work.