Add code to compute correlation between points.