Changed condition for breaking out of loop to terminate rather than
evalCount >= maxIterations