I hacked it together to compile after the update to the IO API but the error handling needs to be rewritten.