Clean up and profile template.