Use defaultTemplate instead of template to allow overriding.