Added pluggable ability to define new metric types