Added reordering of Agents.