Does this work? Not sure if it is supported to modify a collection which is being enumerated.