Added support for annotation templates.