Updates to template before breaking out definitions to template.cpp.