Jwang add resource measurements

That is an indirect, implicit condition, which might change later, not an explicit condition. Check the thing you actually mean to check.