Copying lists when enumerating to avoid thread problems.