Clean up the templates. Almost done now.