Some functions to add to twig