Add template support.