Added filter method to model