Fix perf regression in global detection
Add HTML output support for the ping call