Integrating the template