Changed which script builds the packet so that it is easier to add new items to the packet later.