Add addTwig functionality