A tentative deal has been reached to avoid a strike at the nation’s largest commuter railroad, sparing hundreds of thousands of commuters the headache of finding alternate routes to and from the city, Gov. Cuomo announced Thursday.

The agreement, which still must be ratified by union members, settles a four-year contract dispute between the Metropolitan Transportation Authority and the eight unions that represent the Long Island Rail Road’s 5,400 workers.

Read the complete story at NBC New York.