Buffered reading and correct results of search.