Added the ability to selectively disable input or output.