@vbystricky does it make sense to replace uchar read to int read in all other similar places in this code?