Custom functions to initialize population.