Adds a hook for implenting custom filters when subclassing