Update a foreach part

Latest update for foreach part