Added function to search by name