Estended the CCMetric to 2D.