Fixed annoying cookie bug, also removed some unnecessary console logs.