Update template stuff for modules.