added adjustable delta, numSegments, and numIterations.