Implement template_success and template_failure for Sqwiggle