Add cookie abstaction.