Completed the template_manager