Adding support for template method