Railway – closed many cable cars lines and expanded the electric streetcar system. The URR resumed service on the Ocean Avenue line on May 6, 1906; the line (route 12) was soon extended to Ocean Beach via Junipero Serra Boulevard and Sloat Boulevard. Municipal Railway The San Francisco Municipal Railway (Muni) opened its K line along with the Twin Peaks Tunnel on February 3, 1918. The line originally ran from St. Francis Circle station along West Portal Avenue, through the tunnel, along Market Street to Van Ness Avenue (joining the J Church at Church Street), and along existing tracks on Van Ness Avenue to Pine Street. On June 1, 1918, the J and K lines were removed from Van Ness Avenue and extended along Market Street to a loop at the Ferry Building. The existing URR streetcar service on Ocean Avenue formed a barrier to continued Muni expansion into the Ingleside district. On November 25, 1918, the city and the private URR signed the "Parkside Agreements", which allowed Muni streetcars to use URR trackage on Ocean Avenue as far as Harold Avenue, as well as on Taraval Street, in exchange for a cash payment and shared maintenance costs. The K Ingleside line was extended south on Junipero Serra Boulevard and east on Ocean Avenue to Miramar Avenue on February 21, 1919. On May 18, it was extended several blocks further east to Brighton Avenue, then two blocks south on Grafton to a stub-end terminal at Grafton Avenue. Every other inbound car on Sundays and holidays continued onto the L Taraval line (rather than to downtown) beginning on April 13, 1919; this ended on October 21, 1923, when the L Taraval line was extended to downtown at all times. Every other inbound car operated to the new East Bay Terminal beginning on January 15, 1939; all cars ran there starting on January 1, 1941. Muni bought the Market Street Railway (ex-URR) in 1944; route 12 service was removed from Ocean Avenue on April 8, 1945, leaving just the K Ingleside. On April 21, every other outbound K car was extended on Ocean Avenue and Onondaga Street to Mission Street, providing a direct connection to route . On January 21, 1951, the crosstown route replaced streetcars on the K and L lines on evenings and holidays. All-rail service returned on May 18, 1952, at which time the trackage on Brighton Avenue was