During this period he also served as deputy leader of the Society of Humanity, under Mostowfi ol-Mamalek. In protest at the Anglo-Persian Treaty of 1919, he relocated to Switzerland, from where he returned the following year after being invited by the new Iranian prime minister, Hassan Pirnia (Moshir-ed-Dowleh), to become his minister of justice.