Bounds checking for byteSet.
More bounds checking for byteSet.