On May 24, 1987, the N swapped northern terminals with the . The N was switched to Astoria–Ditmars Boulevard, while the went to Forest Hills–71st Avenue. This was done to give the R direct access to Jamaica Yard; previously, the N had direct access to both Jamaica Yard and Coney Island Yard, and the R, running from Bay Ridge to Astoria, lacked direct access to any yard. This change was intended to improve the appearance and reliability of service on the R, since all trains on the Astoria and Broadway Lines were part of the graffiti-free program.