Celtics president Danny Ainge said that the team and coach Doc Rivers have come to an agreement on a five-year contract. Yahoo! Sports reports the deal is worth $35 million.

“We wanted him for five years and he wanted to stay for five years,” Ainge said. “I think Doc is the best coach in the league, so I think it’s great for us.”

Rivers indicated it was likely he would return to the Celtics after Wednesday’s season-ending loss to the Heat. “I’m leaning heavily [toward] coming back,” he said. “I haven’t made that decision, but I can tell you I probably will. I’ve kind of come to that over the last couple of weeks.”