Don't pass attribute_id around for infered_for (iterate instead)