Switched to using bisection