Some improvements for getPlainMeasurementData API function