Added support for per-domain prefixes.