Added function called discreet.dist