Added subdomain visualization code