This overwrites the rule at each cycle - is that intended behaviour? Is `$resourceName` always different? What if duplicate items are provided?