#136 fixed up order of packets transmitted
#136 Slight performance improvements