The previous changes are incorrect. The previous code log all the resources in the limit_to as not found and generate attribution on all the resources that are not in the limit_to.