Replaced parsing foreach with Parallel.ForEach.