The Indianapolis Colts have signed Matt Hasselebck to a two-year, $8 million deal.

Hasselbeck turns 38 in September and will be Andrew Luck's backup.

Hasselbeck was scheduled to count $7.5 million against the cap of the Tennessee Titans.

The Colts lost Drew Stanton to free agency.