Making custom templates work. Making some significant changes to the template.