Cookies

@s-panferov I think this handles everything.

cc @reem 
We need to remove this.