Genetic algorithm now works.