Added support for template installation.