The Texas Rangers have agreed to sign outfielder Carlos Gomez, sources told Yahoo Sports Saturday.

Gomez, 30, batted .210 in 85 games with the Houston Astros. He was released Thursday. Twice an All-Star, the hard-swinging Gomez has struggled for much of the past two seasons, but brings needed outfield depth to Texas.

The Rangers this week lost outfielder Shin-Soo Choo to a fractured forearm. He could miss the remainder of the season. Ian Desmond, the converted shortstop, is a regular in center field, while the outfield corners have been a rotation of Jurickson Profar, Delino DeShields, Nomar Mazara, Ryan Rua, Drew Stubbs and Carlos Beltran.

Beltran is better suited as the regular designated hitter. Profar has batted .133 this month. DeShields is batting .228. The rookie Mazara has not hit lefties well.

The Rangers have a seven-game lead over the second-place Seattle Mariners in the AL West. Their lead over Gomez’s former team, the Astros, is 10 ½ games.