Fixed stupid bugs with the multiplexed i/o functions.