Added resource measurement