Add Util functions to provide some stats.