Made the read_packet() function dumber by removing the packet detection logic from it ~ AB