Added hypg dist and -nw flag.