Changed cookie serializer to marshal