Removed scipy dependency.