Fix loading detail data for templates.
Misc. use/remove use for modules.