Added for scipy dependency