Added new twig functions