Patch for reading return values