Connecticut will pay nearly $200,000 to Metro-North Railroad to avoid cuts to services between New York and New Haven, a state Department of Transportation spokesman said Wednesday, according to The Associated Press.

Originally, New York’s Metropolitan Transportation Authority, which runs Metro-North, planned to eliminate three Metro-North trains, including the last express train of the night out of Grand Central Terminal, due to budget cuts, according to the AP. The MTA has made cuts for trains to Poughkeepsie and on the Harlem Line to close a $400 million budget gap, The Middletown Press reported.

According to the AP, DOT spokesman Judd Everhart said Connecticut will pay for the use of Metro-North-owned locomotives and equipment that the MTA has not charged the state for in the past, and that the state will use funds already in its budget. Everhart added that Gov. M. Jodi Rell insisted that Metro-North maintain service to Connecticut.