Add parsing cookie functionality