Removed debugger and fixed cookie parsing