Refactored the TerminalRunner loop
Fixed some IProblem sources getting truncated