Changed templateFile loading