lands. As a result, wide disparities of development existed within the empire. In general, the western areas became more developed than the eastern ones. The Kingdom of Hungary became the world's second-largest flour exporter after the United States. The large Hungarian food exports were not limited to neighbouring Germany and Italy: Hungary became the most important foreign food supplier of the large cities and industrial centres of the United Kingdom. Galicia, which has been described as the poorest province of Austro-Hungary, experienced near-constant famines, resulting in 50,000 deaths a year. The Istro-Romanians of Istria were also poor, as pastoralism lost strength and agriculture was not productive. However, by the end of the 19th century, economic differences gradually began to even out as economic growth in the eastern parts of the monarchy consistently surpassed that in the western. The strong agriculture and food industry of the Kingdom of Hungary with the centre of Budapest became predominant within the empire and made up a large proportion of the export to the rest of Europe. Meanwhile, western areas, concentrated mainly around Prague and Vienna, excelled in various manufacturing industries. This division of labour between the east and west, besides the existing economic and monetary union, led to an even more rapid economic growth throughout Austria–Hungary by the early 20th century. However, since the turn of the twentieth century, the Austrian half of the Monarchy could preserve its dominance within the empire in the sectors of the first industrial revolution, but Hungary had a better position in the industries of the second industrial revolution, in these modern sectors of the second industrial revolution the Austrian competition could not become dominant. Trade From 1527 (the creation of the monarchic personal union) to 1851, the Kingdom of Hungary maintained its own customs controls, which separated it from the other parts of the Habsburg-ruled territories. After 1867, the Austrian and Hungarian customs union agreement had to be renegotiated and stipulated every ten years. The agreements were renewed and signed by Vienna and Budapest at the end of every decade because both countries hoped to derive mutual economic benefit from the customs union. The Austrian Empire and the Kingdom of Hungary contracted their foreign commercial treaties independently of each other. Industry The empire's heavy industry had mostly focused on machine building, especially for the electric power industry, locomotive industry and automotive industry, while in light industry the precision