FLOWERY BRANCH -- Falcons backup quarterback Matt Schaub has agreed to a two-year, $9 million deal to return on Wednesday, according to an ESPN report.

The deal has not been turned into the league and is not official yet. It's an extension and will be announced by the team when it's official.

Schaub was reportedly considering joining former Falcons offensive coordinator Kyle Shanahan in San Francisco.

Schaub, 35, who was selected by the Falcons in the third round (90th overall) of the 2004 draft, has played in 146 games and made 92 starts. The former Virginia star has posted a 47-45 record as a starter.

After playing seven seasons with the Texans, he played a season in Oakland and was with Baltimore, where he was 1-1 over two starts in 2015.

He played in five games for the Falcons last season, completing 1 of 3 passes in mostly mop-up duty.