Added search function to look up tags