Add openDevice() for Input and Output classes.