Added comms packet read code