The Falcons announced Saturday that quarterback Matt Schaub and the team agreed to terms on a two-year contract extension.

Schaub was scheduled to become an unrestricted free agent next week, but he said in December that he preferred to remain with the Falcons.

“I love the game, still think I can do it, so I would love to keep playing,” Schaub said in the week leading to the Falcons’ season finale at Tampa Bay. “I love this organization, and I would love to see if they want me back here,” he said. “We’ll see what happens when the season is over, assess the situation and think about it, talk with my wife and see where things go.”

The Falcons drafted Schab in the third round out of Virginia in 2004, and after he played sparingly for three seasons outside of holding the football for placekicks, the team traded him to Houston Texans in 2007 for second-round draft picks in ’07 and ’08.

In those three seasons, he played in 38 games, including two starts, completing 84 of 161 passes for 1,033 yards and six touchdowns.

He returned for a second stint with the team, but hasn’t seen much playing time. He appeared in four games in 2016, none in ’17 and three this past season. He completed 6 of 10 passes for the Falcons in that time for 36 yards.

“Matt has a great understanding of our scheme and brings valuable experience to the position,” coach Dan Quinn said in a statement released by the team Saturday afternoon.