Move PACKET creation into the state machine