Updated the search filter script