Allow custom templates.

Change-Id: Ifaa883c1694b06adbab326975c5034abe5321828