Removed cythonization, did not help performance.