NEW YORK (AP) The New York Rangers have agreed to terms with restricted free agent forward J.T. Miller.

Miller had 22 goals and 21 assists this past season and had career highs in several categories, including games, goals, assists and game-winning goals (five).

Miller was one of two Rangers - and the only forward - who skated in all of the team's 82 regular-season games. He led the Rangers in even strength goals (20), tied for the team lead in game-winning goals, ranked second in even strength points (39), ranked third in hits (174) and tied for third in goals.

More from FoxSports

Miller has skated in 196 NHL games over parts of four seasons (2012-13 to 2015-16), all with the Rangers, with 37 goals and 39 assists.

He was selected by the Rangers in the first round, 15th overall, of the 2011 draft and will also represent Team North America at the World Cup of Hockey in September.