Applying Templates to Subgrade