Putting the templates in