Point guard T.J. Ford and the Toronto Raptors agreed Tuesday on a contract extension.

Ford signed a three-year deal with an option for a fourth year. The extension could pay the guard as much as $33 million.

Raptors GM Bryan Colangelo had until midnight Tuesday to make the deal, otherwise the 23-year-old would become a restricted free agent at the end of this season.