Increased packet header len to 4 bytes.
New functions added to client