Updated filter method.