Speeding up the search for tags.