Added overloaded cookie method