Add framework for template checking