Added more specific cookie functionality.