Implement measure functions.