Removed a parallel section to avoid race conditions.