Updated to allow Twig extensions to work correctly