The Boston Red Sox have agreed to a five-year, $110 million deal with J.D. Martinez, according to various sources.

The contract includes opt-outs after the second and third years of the deal.

Martinez will help a Boston lineup that finished last in the American League with 168 homers last season. He hit a career-best 45 home runs in 2017.