Add functions to obtain some metrics about the run state