Add output handling in net_scan