Finalizing templates.