Added private function ReturnLastCookie