Fixed deadlock
Added InIntervalMeasure