Made combination filter more useful by letting it take a function.