Update DLL to set rightCutOff to include the last point if it is bigger than the threshold