Refactor cookie parsing into a separate free function
Replace hard-coded columns with a loop iteration