Added support for adding agent with predefined population size.