public function Status_Get($guid, $nowait = true) {
        if ($nowait === true) {
            $ret = $this->_call_api('get', "{$this->_url}/statusNoWait/$guid", array());
        } else {
            do {
                $ret = $this->_call_api('get', "{$this->_url}/status/$guid", array());
                switch($ret->statusCode) {
                    case 'COMPLETED':
                    case 'CANCELLED':
                    case 'ERROR':
                        $wait = false;
                        break;

                    case 'INPROGRESS':
                    case 'SUBMITTED':
                    case 'PAUSED':
                        $wait = true;
                        break;

                    default:
                        $wait = false; // Unknown status, don't wait forever
                }
            } while ( $wait === true);
        }

        return $ret;
    }