Added templating support.