Paul Molitor and the Twins have agreed on a three-year contract that will bring the 61-year-old back as the team's manager.

Final details of the contract were worked out over the weekend.

Molitor's three-year contract expired at season's end.

The Twins were the first team to make the Major League Baseball playoffs after a 100-loss season, rebounding from a 59-103 record in 2016 to go 85-77 in 2017. They earned the second wild-card berth in the American League before losing to the Yankees 8-4 on Tuesday in a one-game playoff in New York.

Molitor, 61, has a three-year record of 227-259 despite two winning seasons.