Updates according to changes on the template.