Percy Harvin, the mercurial, oft-injured wideout and kickoff-return specialist who was thought to be retired, signed with the Buffalo Bills for the rest of the season, agent Greg Barnett said Tuesday via Twitter. According to NFL Media’s Ian Rapoport, Harvin will be paid $1 million for the final eight games of the season.

Harvin must still pass a physical, the Associated Press reports. But, if healthy, he could immediately come to the aid of a Bills team that’s been beset by injuries to its wide receivers. Three of the team’s top four wideouts missed Sunday’s loss to the Patriots, and backup Brandon Tate left that game with a possible concussion.

Drafted by the Minnesota Vikings with the 22nd pick of the 2009 NFL draft, Harvin had 280 receptions and 20 touchdown catches over his first four seasons, adding four rushing scores and another five on kickoff returns. But Harvin began to decline after the Vikings traded him to the Seattle Seahawks before the 2013 season. He ended up playing in just three games that year for the Seahawks, who signed him after the trade to a six-year, $67 million contract with $25.5 million guaranteed. Beset by a hip injury, Harvin also physically quarreled with teammates and refused to enter games on three separate instances because of a perceived lack of playing time.

Seattle shipped Harvin to the Jets midway through the 2014 season, and New York cut him once it was finished. The Bills picked him up in 2015 and he managed just five games before going on injured reserve because of hip and knee injuries. Harvin played in a total of 19 regular season games over the three seasons from 2013 to 2015. In April of this year, former agent Joel Segal announced that Harvin was retiring at age 27.