Rail transport in Pakistan began in 1855 during the British Raj, when several railway companies began laying track and operating in present-day Pakistan. The country's rail system has been nationalised as Pakistan Railways (originally the Pakistan Western Railway). The system was originally a patchwork of local rail lines operated by small private companies, including the Scinde, Punjab and Delhi Railways and the Indus Steam Flotilla. In 1870, the four companies were amalgamated as the Scinde, Punjab & Delhi Railway. Several other rail lines were built shortly thereafter, including the Sind–Sagar and Trans–Baluchistan Railways and the Sind–Pishin, Indus Valley, Punjab Northern and Kandahar State Railways. These six companies and the Scinde, Punjab & Delhi Railway merged to form the North Western State Railway in 1880. Following the independence of Pakistan in 1947, the North Western Railway became Pakistan Western Railway and the rail system was reorganised in the dominion of Pakistan; some of the reorganisation was controversial. Rail use increased in early 1948, and the network became profitable. Declining passenger numbers and financial losses in the late 1980s and early 1990s prompted the closure of many branch lines and small stations. The 1990s saw corporate mismanagement and severe cuts in rail subsidies. Due to falling passenger numbers, government subsidies are necessary to keep the railways financially viable.