Added paramter to control crossover