Debug (relevant in second level model)
Debug
Added option for obtaining output by stream