Trying to abstract the search
Extended in the wrong order