Cookie function works great now! Added pointer variable, still need to implement jumpto