Added search filter functionality.