Override template resolution