public function  setup() {
		parent::setup();
		increase_time_limit_to();

		$restart = $this->currentStep == 0;

		if (!$this->tempFile || !file_exists($this->tempFile)) {
			$tmpfile = tempnam(getTempFolder(), 'postsitemap');
			if (file_exists($tmpfile)) {
				$this->tempFile = $tmpfile;
			}
			$restart = true;
		}

		if ($restart) {
			$this->toProcess = $this->getProcessIds();
		}
	}