Update for IO API update

The error handling needs to be redone still.