Additional work to make resource usage stats optional.