Fixed some data handling

Based line bytes read based on Byte Count byte.