Jwang add resource measurements

Fixed in 7e8379f, I made it a temp variable.