protected function _setupAfterCalls()
	{
		//  Save ratelimits received with this request if RateLimit cache is enabled
		$this->afterCall[] = function () {
			if ($this->getSetting(self::SET_CACHE_RATELIMIT, false) && $this->rlc != false)
				$this->rlc->registerLimits($this->getSetting($this->used_key), $this->getSetting(self::SET_REGION), $this->getResourceEndpoint(), @$this->result_headers[self::HEADER_APP_RATELIMIT], @$this->result_headers[self::HEADER_METHOD_RATELIMIT]);
		};

		//  Register, that call has been made if RateLimit cache is enabled
		$this->afterCall[] = function () {
			if ($this->getSetting(self::SET_CACHE_RATELIMIT, false) && $this->rlc != false)
				$this->rlc->registerCall($this->getSetting($this->used_key), $this->getSetting(self::SET_REGION), $this->getResourceEndpoint(), @$this->result_headers[self::HEADER_APP_RATELIMIT_COUNT], @$this->result_headers[self::HEADER_METHOD_RATELIMIT_COUNT]);
		};

		//  Save result data, if CallCache is enabled and when the old result has expired
		$this->afterCall[] = function () {
			$requestHash = func_get_arg(2);
			if ($this->getSetting(self::SET_CACHE_CALLS, false) && $this->ccc != false && $this->ccc->isCallCached($requestHash) == false)
			{
				//  Get information for how long to save the data
				if ($timeInterval = @$this->getSetting(self::SET_CACHE_CALLS_LENGTH)[$this->getResource()])
					$this->ccc->saveCallData($requestHash, $this->result_data_raw, $timeInterval);
			}
		};

		//  Save result data as new DummyData if enabled and if data does not already exist
		$this->afterCall[] = function () {
			$dummyData_file = func_get_arg(3);
			if ($this->getSetting(self::SET_SAVE_DUMMY_DATA, false) && file_exists($dummyData_file) == false)
				$this->_saveDummyData($dummyData_file);
		};

		//  Save newly cached data
		$this->afterCall[] = function () {
			if ($this->getSetting(self::SET_CACHE_CALLS, false) || $this->getSetting(self::SET_CACHE_RATELIMIT, false))
				$this->saveCache();
		};

		$callbacks = $this->getSetting(self::SET_CALLBACKS_AFTER, []);
		if (is_array($callbacks) == false)
			$callbacks = [$callbacks];

		foreach ($callbacks as $c)
		{
			if (is_callable($c) == false)
				throw new SettingsException("Provided value of '" . self::SET_CALLBACKS_AFTER . "' option is not valid.");

			$this->afterCall[] = $c;
		}
	}