— North Carolina State University head football coach Dave Doeren has a new contract, and it'll pay him handsomely through 2022.

NC State released a memorandum of understanding Friday afternoon detailing the contract.

It will pay Doeren $3 million per year in total compensation.

Doeren's base salary will increase from $1.5 million in 2018 to $3 million over the final two years, while his non-salary compensation will start out at $1.5 million the next two years before decreasing in the final two years of the deal.

Doeren's deal also includes incentives if NC State wins eight games in either 2018 or 2019.

NC State also gave Doeren a one-time $750,000 increase to his football staff compensation pool and the ability to offer up to three 3-year deals to his assistants.

After two days of speculation that Doeren may bolt to Tennessee, NC State Athletics Director Debbie Yow announced Thursday that she and Doeren had reached an agreement after weeks of somewhat strained contract negotiations.

“My heart is at NC State, my family and I are truly grateful to Chancellor (Randy) Woodson and Athletic Director Debbie Yow for the opportunity to continue to build on the momentum we have here in Raleigh,” Doeren said Thursday.

This story will be updated with additional details of Doeren's deal.