Packet building preparation scripts