Correlation function finished