Added support for externally adding agent types and population size.