Format fix

Fix menu format, and agentDiscovery function