More on template generation