Partly added parsing for Handshake.