Moved agent info init/update to the agent itself.