Adds priority in tagged factories