Finished correlation function.