Implement Measure().