Correct Measurement code