Valley station was closed and was functionally replaced by Castro Street Station. This combined subway line was the impetus for transitioning the system to light rail and served as the basis of Muni Metro. The original eastern entrance to the tunnel in the middle of Market Street at Castro was removed and new entrances and ramps were constructed on the sides of the street further up the block. These were connected to track on 17th Street, and in December 1972 the K, L and M lines were diverted via the new East Portal ramps (and via 17th, Church Street and Duboce Avenue, removed from Upper Market) to allow construction of the Muni Metro subway under Upper Market to begin. These newer portals and ramps remained in use by all K-L-M service until 1980. After the Muni Metro subway section between Van Ness station and the Twin Peaks Tunnel opened for use, in December 1980, weekday trains on lines K, L, and M were converted to Boeing LRVs, and trains continued directly from the Market Street subway into the tunnel without going above ground. Weekend service initially remained operated by the old PCC cars and routed along the surface of Market Street, and the subway was closed on weekends. Regular, weekend use of the east portal ramps to 17th and Castro finally ended on September 19, 1982, with the conversion of weekend K-L-M service to light rail and the closure of the surface tracks on Market Street—a closure that was planned at the time to be permanent. However, the surface tracks – and the 1972-built Castro portals – came back into use the following summer for the first Historic Trolley Festival, in 1983. Trolley Festival service gradually expanded from being summer-only and five days a week to running May to October and daily for part of the year, and all streetcars on that service reached Market Street from Muni's Metro Rail Center via the Twin Peaks Tunnel and the 1972 portals. The last Trolley Festival took place in 1987, and by the time its replacement, the F Market line, opened in 1995, its streetcars were able to use the J Church for "pull-in" and "pull-out" trips (to and from the carhouse) because the 1991-opened extension of the J line from 30th Street to Balboa Park BART station had provided an alternative routing for streetcars traveling between Metro Rail Center (and the