Okay, so the .AsParallel call is definitely doing something weird but only in certain environments. Removing for now.