CHINO, Calif. (AP) — One of two men caught on videotape apparently abusing cattle at a California slaughterhouse has been sentenced to six months in jail.

Rafael Sanchez Herrera pleaded guilty to three misdemeanor counts of animal abuse in a San Bernardino County Superior Court on Friday.

Under the plea deal the 34-year-old Sanchez will be deported to his native Mexico after serving jail time.

A conviction on the three charges might have meant three years in jail.

The video shows Herrera and other workers at the Westland/Hallmark Meat Company dragging sick cows with metal chains and forklifts, shocking them with electric prods and shooting streams of water in their nose and faces.

It led to the largest beef recall in U.S. history.