Patch to remove non-portable console method