Trying to compensate for not receiving a character messing up length and thus end detection