Fix to use template.txt