Adding cookie managenment for command