Slight improvement to how output is handled in interactive console.