Adding support for up to 7 levels of subdomain granularity