Changed the secant search.