Added support for Cookies.