Made _search_* functions inline