Consequently plans for war began to be set in place in Vienna. The Austro-Hungarian Emperor, who understood what issuance of the ultimatum inevitably meant, had to be reluctantly persuaded to approve its despatch. Astonishingly however, Serbia consented to virtually all of Austria-Hungary's demands bar a number of minor clauses. Dissent on these however was seized upon by Austria-Hungary as the necessary pretext for a formal declaration of war on 28 July 1914.