onRead and onWrite for OutputSetup.