Added getCookie() method