Implemented the metric function in MTT.