Add support for cookies.