Added a potentially useful debug tool.