Resolved some bugs (getMeasurementData etc)