Got templates working