Added CompoundMetric. Still need to work on script.