Made the check for RX overflow more efficient