Implement the search