The first main line railway in southern England was the London and Southampton Railway, (renamed LSWR in 1838), which completed its line in May 1840. It was quickly followed by the London and Brighton Railway (September 1841), and the South Eastern Railway (formerly the South Eastern and Dover Railway) in February 1844. The LSWR branched out to destinations including Portsmouth, Salisbury and later Exeter and Plymouth. It grew to be the largest of the four constituent companies. The LBSCR was a smaller railway than its LSWR neighbour, serving the port of Newhaven and several popular holiday resorts on the south coast and operating much of the south London suburban network. It had been almost bankrupt in 1867, but, during the last twenty-five years of its existence, it had been well-managed and profitable. It had begun to electrify routes around London (using an overhead line system) from 1909 to compete with the new electric trams that were taking away some of its traffic. Finally, the SECR had been created after years of wasteful and damaging competition between the two companies involved, with duplication of routes and services. Both companies had been unpopular with the travelling public and operated poorly-maintained vehicles and infrastructure. Nevertheless, real progress had been made in rectifying this. during the period 1899–1922.