Added search filter routine