Updating foreach.