I can't use a forEach because of this error: `Caught Concurrent modification during iteration`.