Enhanced to show stdout in the textbox.