AgentMap functions nearly completed