PacketWrapper forked from https://github.com/aadnk/PacketWrapper