The Minnesota Vikings and Harrison Smith have agreed to a four-year, $64 million contract extension.

It makes Smith the second-highest paid safety in the NFL.

Smith said all offseason that his goal was to remain in Minnesota. He was heading into the final year of the five-year extension he signed with the team in 2016.