Added CookieManager object to manage cookies.