Use range instead of loc to compute highlights