Changes to Measure including scaleLocal function.