Updated bytes comparison function.