SANTA CLARA (CBS SF) — The San Francisco 49ers reached a new deal with running back Raheem Mostert Monday according to his agent, reworking his contract after the rising star requested a trade earlier this month.

Mostert helped lead the team to the Super Bowl with his late season surge and playoff heroics. His agent Brett Tessler confirmed that the team had finalized a new deal for his client on Twitter.

READ MORE: Smash-And-Grab Thieves Hit San Jose Eastridge Mall Jewelry Store; 5 Sought

“Happy we got things worked out and looking forward to him having another great season there,” Tessler said in the tweet before thanking the team.

The deal comes just under three weeks after the agent had announced that Mostert was demanding a trade after Tessler was unable to come to terms with the team to restructure his contract after months of negotiations.

No details on the new contract have been released so far.

“Disappointing that it would come to this for a guy who led all NFL RBs in YPC & helped lead them to the Super Bowl,” Tessler tweeted.

READ MORE: Bay Area Air Quality Plummets As Inversion Layer Traps Pollution

After being cut by six teams and carrying the ball only eight times his first three seasons in the NFL, Mostert was a key part of San Francisco’s NFC title-winning season in his fifth year in 2019.

Mostert led the 49ers with 772 yards and topped the NFL with 12 rushing touchdowns from week 12 through postseason. He also set a team record with 220 yards rushing in the 49ers’ NFC Championship victory over the Green Bay Packers.

The 49ers were scheduled to pay Mostert $2.575 million this season and $2.875 million in 2021 as part of a three-year contract he signed last year. His annual average contract value makes him the fourth-highest-paid running back on the 49ers, behind Jerick McKinnon, Kyle Juszczyk, and Tevin Coleman. McKinnon has not played the last two seasons because of injuries.

In April, the 49ers traded running back Matt Breida to the Miami Dolphins.

In May, Mostert revealed that the specter of returning to play amid the coronavirus pandemic had raised an emotional response from his family, telling reporters that fears over the threat of the virus has brought his wife to tears.

MORE NEWS: Indiana Woman Who Went Missing in Oakland Nov. 21 Found Thursday Night

Mostert also cancelled a March appearance at an autograph show at the Santa Clara County Convention Center because of those concerns. It was more than 10 days before Gov. Gavin Newsom issued a state-wide shelter-in-place order, grinding all sports to a halt.