The Buffalo Bills have agreed to a two-year, $10 million deal with A.J. McCarron.

The quarterback's deal can be worth up to $16.5 million if he reaches playing-time incentives, according to a source. It also carries $6 million in guarantees.

Following the trade of Tyrod Taylor to the Cleveland Browns, Buffalo's quarterback chart consists of McCarron and 2017 fifth-round pick Nathan Peterman.