Use the new interface for the metric method.
Use the new metric interface.