Adding filter method.