Creating template files for TH