Adjusted for changes in pruneSteps.