Simplify host loop detection and output