Added subdomain functionality