Add metrics support.