First implementation of metric conversion.