Fixes Response type.
Fixes several I/O issues due to changing API.