By The Associated Press

DETROIT (AP) — A young man who was fired from his job as a food vendor at the Detroit Tigers’ home stadium after video surfaced showing him spitting on a pizza has pleaded guilty in the case.

Court records show Jaylon Kerley entered the plea Wednesday to one felony count and one misdemeanor count of food law violations. The felony is punishable by up to four years behind bars.

This undated photo released by the Detroit Police Department shows Jaylon Kerley, who was fired from his job as a food vendor at the Detroit Tigers’ baseball stadium after video surfaced showing him spitting on a pizza. Karley has pleaded guilty Wednesday, Oct. 17, 2018, according to court records, to one felony count and one misdemeanor count of food law violations. The felony is punishable by up to four years behind bars. (Detroit Police Department via AP)

The 21-year-old’s sentencing is Nov. 15. His lawyer has said Kerley understood what he did was wrong and was remorseful.

The video appeared on Instagram and the pizza was apparently intended for a customer. Officials determined it was recorded Sept. 21 during the Tigers game against the Kansas City Royals at Comerica Park. Kerley was fired. Tests later showed he didn’t have communicable diseases .