Changed fragbyte arg modulo to 256.
Added shift to clear high bit.