BOSTON (AP) _ Infielder Alex Cora stayed with the Boston Red Sox, agreeing Friday to a $4 million, two-year contract.

The 31-year-old hit .238 with one home run and 18 RBIs in 96 games with Boston this year. He started 47 games at shortstop, 10 at second base and four at third.

Cora has a .244 career batting average, with 31 homers and 215 RBIs in 876 games over nine seasons with the Los Angeles Dodgers, Cleveland and Boston.

Cora was acquired by Boston from the Indians on July 7, 2005, and filed for free agency Oct. 31.

In addition to his base salary of $2 million annually, he can earn $1 million a year in performance bonuses: $250,000 each for 110, 120, 130 and 140 games started.