Di's add-on for metric computation