Added a static timed debug facility for periodic insepction of the state.