Tweaking conversion of template.