Draft of added searchPhrase function