Unlike the first half of the 19th century, the second half of the century was a peaceful period characterized by economic and technological expansion and a stable government. In 1856, the region's first telegraph line was installed between Batavia and Buitenzorg. In 1859, Batavia was connected to Singapore with the Dutch East Indies' first international telegraph connection. The city completed its first gasworks two years later, and its streets were lit with gas by 1862. The first trams and telephones came in 1882.