Switched to bisect method