Packet writing system created( test needed)