Output to output pane. Fixed scoping issue.