Working model of nodemetrics. Needs fix for complete functionality