Finally got the templates working.