Changes to allow debug log to be displayed while program is running