Added abiltiy to vary prefix length.