Added weight-hiarchy for prefixes