And generate the cog html too