Added output generation for ast