Updated inheritance in templates.