The Miami Heat re-signed longtime forward Udonis Haslem to a new contract Friday.

The team did not announce terms of the deal, but sources told ESPN.com it is for the room midlevel exception of two years and $5.5 million.

Haslem had opted out of a contract that was scheduled to pay him $4.6 million this season. The Heat were able to restructure their roster by giving him a new deal.