Commented out checkAgents() function.