Adapted code to do one transaction per packet.