Update foreach.