Get functions fixed for cookies