SPRINGFIELD - Antonio Perez agreed to take a longer state prison sentence so his wife and daughter could serve their time in the Chicopee jail instead of state prison, a prosecutor said Thursday.

Antonio Perez agreed to plead guilty to drug charges and take a four- to six-year state prison sentence, Assistant District Attorney Katharine Johnston said.

Hampden Superior Court Judge Tina S. Page accepted that sentence recommendation, which had been agreed upon by Johnston and defense lawyer James Goodhines.

On March 2, 2017, narcotics detectives raided the 96 Maple St. apartment that was home to Antonio Perez, 55, his wife, Magdalena Rodriguez, 44, their 24-year-old daughter, Yashira Perez, and Monserrate Rodriguez, 44.

All four pleaded guilty Thursday to possession of cocaine with intent to distribute and possession of heroin with intent to distribute.

Antonio Perez also pleaded guilty to carrying a firearm without a license, having one prior drug conviction.

Page also accepted the sentence recommendation agreed upon by Johnston and three defense lawyers for Yashira Perez, Monserrate Rodriguez and Magdalena Rodriguez. The three were sentenced to two and a half years in jail plus two years probation.

Yashira Perez and Magdalena Rodriguez will serve their time at the Western Massachusetts Regional Women's Correctional Center in Chicopee, and Monserrate Rodriguez will serve his time in the Hampden County Correctional Center in Ludlow.

The four had been charged with trafficking cocaine in the amount of 36 to 100 grams, but that charge was reduced as part of the plea agreement.