Adding numba speed ups