Added basic cookie ability using Sam code