Adding agent discovery in agent-exec.