Exported the handshake method. Removed buffer to array conversion.