Contract metric is now working