Instantiating templates as targets