West Virginia put the finishing touches on the 2016 regular season with a 24-21 win over Baylor on Saturday, and it also took care of the future as well.

The school announced a five-year contract extension for coach Dana Holgorsen following the game.

"I said back in the spring that Coach Holgorsen and I were focused on nothing but a successful 2016 football season, and I think we've proven that," said West Virginia athletic director Shane Lyons in a release. "Now that the regular season has come to a close, the time is right to finalize a new contract for Dana and keep our program going in a positive direction.

"Dana and I have always had a good, open dialogue, and we want this program to succeed at the highest level. I am pleased and happy that he wants to continue to lead the Mountaineer football program. Part of my job is to give him the resources to succeed, and we will continue to work together closely to bring the very best to West Virginia football."

Sports Illustrated's Pete Thamel reports that the new deal will pay Holgorsen $18.6 million -- an average salary of $3.72 million per year -- and will top out at $4 million in the final year of the deal.

Holgorsen is in his fifth season with the Mountaineers, and is having his best season with the team since the Mountaineers left the Big East for the Big 12. West Virginia went 10-2 in the regular season with a 7-2 record in conference play.

In his six seasons at West Virginia, the Mountaineers have gone 46-30.