Merged for loops in evolve()