Dynamic looping through modifiers