The filter is now implemented on the model, so only the resources that are going to be shown are calculated.