Made calculation of colOffsets faster.