Creating the data and fine-tuning the templates