Added the binary search.