Changed TwigEngine to DelegatingEngine