Making foreign policy on the fly