Change move_packet to use the rpacket structure