Use a pointer to the agent, instead of a copy.