function DoSearch($query, $start=0, $max=10, $filter=false, $restrict="", $safe=false, $lr="", $ie="", $oe="")
	{
		$result = null;
		$continue = true;
		$counter = 0;
		
		while ($continue)
		{
			$counter++;
			try
			{
				$result = $this->_googleSoap($query, $start, $max, $filter, $restrict, $safe, $lr, $ie, $oe);
				$continue = false;
			}
			catch (exception $ex)
			{
				$this->FailedRequests++;
				
				if (preg_match("/Daily limit/i", $ex->getMessage()) || preg_match("/Invalid/i", $ex->getMessage())) 
				{
					throw $ex;
				}

				if ($counter > 2)
				{
					throw new Exception("Tried to contact Google API $counter times without success:" . $ex->getMessage());
				}

			}

		}
		
		return $result;

	}