Packet decoding done, working on packet encoding