Parameterize number of agents.