Filter function now takes multiple values