Moving IO_RESULT definitions to IoTypes file