Changed way to enable twig functions