One of the most complicated problems that Serbia faced immediately after gaining independence at the Berlin Congress was finances - financing primarily its own state, but also debts incurred during the liberation wars against Turkey and assumed obligations under the treaty of July 13, 1878. Serbia during the wars of 1876-78 settled its modest budget from only two types of tax - personal and property so that the rapid increase in government liabilities required an urgent reform of the entire financial system, and above all fiscal policy. In addition, Serbia inherited the obligations of High Port to the Austro-Hungarian Empire and the Railway Company in the European part of Turkey - i.e. to build new ones and to complete and link the started routes within the boundaries over which it gained sovereignty.