Added template method.