How to end the war, and how to finetune sanctions