Added threshold to distortion.