Improve stat reading.
Added resource statistics to watchdog stats.