Support for template annotations. Closes #10