Added some basic binary search.