Adding scipy dependency