modified the ReadTOSI function signature.