Fixed console threading issue.