Just like two summers ago, the Rangers and forward Chris Kreider avoided an arbitration hearing at the 11th hour.

The Rangers and Kreider, who was a restricted free agent, were set to go to arbitration on Friday. The team, however, announced the signing Friday morning, but did not disclose financial terms.

This time, the 25-year-old forward gets locked up with a four-year deal with an average annual salary of $4.625 million, according to a source. The deal includes two seasons in which he would have been eligible for free agency,

In August 2014, the sides settled on a two-year pact for an average of $2.475 million.

Kreider had 21 goals and 43 points in 79 games last season. Kreider has 61 goals and 68 assists in 248 games over his four seasons with the Rangers. He has 20 goals and 13 assists in 65 career playoff games. Kreider was the 19th overall selection by the Rangers in the first round of the 2009 NHL Entry Draft.

Hayes agrees

On Friday afternoon, the Rangers also announced they agreed to terms on a new deal with Kevin Hayes, the lone remaining restricted free agent eligible for arbitration.

Terms of the deal were not disclosed.

Hayes, 24, total 14 goals and 22 assists in 79 games for the Rangers last season.

The Rangers have not had a player go through an arbitration hearing since Nikolay Zherdev in 2009, when the team walked away from his $3.9 million award, making him an unrestricted free agent.