Added  twig function