Jason Maxiell has agreed to a two-year, $5 million deal with the Orlando Magic.

Maxiell has been with the Detroit Pistons since 2005.

The Magic hold a team option on the contract for 14-15 at $2.5 million.