Improved efficiency ofr instance search.