The Buffalo Bills have agreed to a two-year contract extension with Jerry Hughes.

The deal is worth up to $23 million and includes $19.5 million guaranteed, according to a source.

The defensive end turns 31 in August. Hughes has 41.5 sacks over the last six seasons.