Updated

The Minnesota Timberwolves have agreed to terms on a five-year deal with restricted free agent center Nikola Pekovic.

Wolves president of basketball operations Flip Saunders tweets that the deal is done. Saunders and Pekovic's agent, Jeff Schwartz, spent more than a month negotiating the deal, which was completed on Wednesday. Even as negotiations stretched on for weeks, Saunders remained adamant that Pekovic would remain in Minnesota.

Pekovic posted career highs with 16.3 points and 8.8 rebounds in 62 games last season for the Timberwolves. The 27-year-old will return to team with Kevin Love and Ricky Rubio for a promising young core in Minnesota.