Changed range handling form blobk based to byte based