Simplify handshake.
Added compress handshake.