Added support for section-level templates.