Completed templating portion of script