Adding a search method