Added measurement recursion depth