First functional revision of twig task, not yet tested.