Fixed a few issues with parallel tasks returning incorrect results. Speed is somewhat improved, but correctness is intact.