Cloud-based two point correlation code