Checking connected agents.