Replaced the 2nd occurence of inline stuff with call to binary_search()