Everson Griffen will remain with Minnesota Vikings after all.

Minnesota struck a deal with the defensive end at a reduced rate just in time to keep him on the team, a source told NFL Network Insider Ian Rapoport. Griffen will earn around $8 million in 2019 as part of his new deal, a $3 million pay cut, NFL Network's Tom Pelissero reported.

The defensive lineman was owed $10.9 million in 2019 before the restructure, all of which was set to be guaranteed on Thursday at 4 p.m. ET. Griffen reportedly signed the new deal with minutes to spare.

The 31-year-old Griffen, who has four years remaining on an extension signed in 2017, was thought to be a cut candidate after the Vikings re-signed linebacker Anthony Barr to a monster five-year, $67.5 million deal earlier this week. It's currently unclear if the rest of Griffen's contract, which runs through 2022, will stay the same.