Updated behavior of addToOperationsList to match shell