Added support for custom domain name.