Add search_email function