Removed scipy dependency