Add initial support for filter sets in the filter() function