Template adjustment