Updated methods for processSearchResults library