Add support for cookie.