Deleted excess function
Added corr for correlating time series