Modified Bisection function value check to only take place when the magnitudes of the gradient are small