Modified measurement logic.