Major work on the template.