Removed parallelization in cython because it was slower.