Nick Martinez, who pitched in practically every role last season, has returned to the San Diego Padres with a new three-year contract, a source confirmed to ESPN on Wednesday.

Martinez recently opted out of the three remaining years of a deal he signed in March, coming off a breakout season in Japan, which were valued at about $18 million. His new contract will guarantee him $26 million from 2023 to 2025 and carries incentives that, according to the San Diego Union-Tribune, can increase the value to $42 million.