Rewrote tpb_search method for TPBay class to be sensitive to the number of search results returned by a query.