Add Packet constructor.