Modified the threshold for right point detection.