The Philadelphia Flyers and Jeff Carter agreed to a multiyear contract Friday, only days before the center was set to become a restricted free agent.

The 23-year-old Carter was taken 11th overall by the Flyers in the 2003 draft and he has 66 goals and 132 points in 225 career games. Carter played in all 82 games last season and had 29 goals and 53 points. He scored six more goals in the playoffs and helped the Flyers reach the Eastern Conference finals.

When the Flyers lost All-Star center Mike Richards to a hamstring injury in late February, Carter picked up the scoring slack. He had eight goals in the nine games Richards missed, helping the Flyers go 5-2-2 in that span.