Added byte counter rollover when number of bytes has been reached