Change pretest PH to binary search