Use local agent vars in nextAgentPair()