Added debug tool.