Buffalo Bills new head coach Rex Ryan has said he wants his offense to rely heavily on a running attack. That attack now includes a former rushing champion.

A person familiar with the deal has confirmed to The Associated Press that the Philadelphia Eagles have agreed to trade star running back LeSean McCoy to the Bills for linebacker Kiko Alonso. ESPN first reported that the Bills were acquiring McCoy, who had an inconsistent season last year after leading the NFL with 1,607 yards rushing in 2013.

Buffalo is expected to lose running back C.J. Spiller to free agency next week.

Alonso played college football in Oregon under Eagles coach Chip Kelly.

The Eagles also released cornerback Cary Williams, who started all 32 games after signing with Philadelphia in 2013. The move will save the Eagles about $6.5 million against the salary cap.