Minor update to IOOperator, avoid repeated code for executeCommand