Client constructPacket function added to allow ease of preparing packets to be sent.