ORCHARD PARK, N.Y. (AP) – Josh Allen threw three touchdown passes, Devin Singletary ran for a season-high 86 yards with his quarterback mostly kept in the pocket by a sprained left foot and the Buffalo Bills beat the offensively challenged Carolina Panthers 31-14.

Allen finished 19 of 34 for 210 yards while Singletary kept Buffalo moving on the ground and opened the scoring on a 16-yard run.

The Bills limited Allen’s mobility a week after the fourth-year starter was hurt in a 33-27 overtime loss at Tampa Bay.

Allen was sacked a season-high four times for 17 yards. He scrambled once for 26 yards in the third quarter.