Added variables to template.