Moved every thing to numpy arrays.