Add filter functionality.