Added packetize method