​The ​Falcons have secured their backup quarterback situation.

Atlanta agreed to a two-year contract extension with veteran quarterback ​Matt Schaub.

Schaub has been Matt Ryan's primary backup the last three seasons, appearing in just seven games and completing only six passes. He may not be the starter he once was with the Houston Texans, but he understands the system as good as anyone.

“Matt has a great understanding of our scheme and brings valuable experience to the position,” said head coach Dan Quinn.

​​The 37-year-old was drafted by the Falcons in the third round back in 2004. After three seasons, he went to Houston and became a two-time Pro Bowler. After bouncing around with the Oakland Raiders and Baltimore Ravens, he signed back with the Falcons in 2016.

Over his 15-year career, Schaub has tallied 24,887 yards, 133 touchdowns and 90 interceptions over 148 games (92 starts). Matt Ryan has a top QB mind to work with for the next two seasons.