Each thread flushes now flushes lazily; computation of the summand has been made more efficient.