Won't putting $filter before $properties in the function declaration break the API?
Is the a reason it needs to go before $properties?