Following the conclusion of the Greek War of Independence, the Megali Idea (Great Idea) ideology came to dominate Greek foreign policy. The ultimate goal of the Megali Idea was the incorporation of all areas traditionally populated by Greeks into an independent Greek state. The disastrous Greek defeat in the short Greco-Turkish War of 1897 exposed major flaws in the Greek Army's organization, training and logistics. Upon his appointment in December 1905, Georgios Theotokis became the first postwar Greek prime minister to focus his attention on strengthening the army. He established the National Defense Fund which financed the purchase of large quantities of ammunition. In addition a new table of organization was introduced for the country's navy and army, the latter being augmented by numerous artillery batteries. Theotokis' resignation in January 1909 and the perceived neglect of the armed forces by his successor resulted in the Goudi coup seven months later. Rather than taking power for themselves, the putschists invited Cretan politician Eleftherios Venizelos to rule the country. Venizelos followed in Theotokis' footsteps by rearming and retraining the military, enacting extensive fortification and infrastructure works, purchasing new weapons, and recalling the reservists for training.