Moving template processing up to module.