Added maxDiff.