Rewriting everything into Numpy.