Relocated template generation