The Buffalo Bills have re-signed veteran quarterback Derek Anderson to a one-year contract in a move reflecting the role he played in mentoring rookie Josh Allen through the final two-plus months of the season.

The signing on Monday comes a day after Buffalo closed a 6-10 season with a 42-17 win over Miami, in which Allen had a career-best three touchdowns passing and scored two more rushing.

Anderson completed his 14th season and was signed by Buffalo in mid-October after Allen was sidelined by a sprained right throwing elbow. He went 0-2 as a starter and was sidelined by a concussion in a 25-6 loss to New England.

Anderson was still credited for playing a valuable role in helping groom Allen. The first-round draft pick closed the season 3-3 and finished 5-6.

Buffalo returns all three quarterbacks after signing backup Matt Barkley to a two-year contract extension 10 days ago.