TOWN OF WALLKILL - The man who accidentally discharged his gun in the Galleria at Crystal Run in November, injuring fellow shoppers and causing hysteria at the mall, was sentenced Wednesday to three years on probation.

Michael Perez-Rodriguez, 27, appeared in front of Judge Peter Green in Wallkill Town Court on Wednesday morning for sentencing. He pleaded guilty in April to a charge of second-degree reckless endangerment, a misdemeanor.

Conditions of his probation include 100 hours of community service to be completed within a year and payment of $1,875.92 in restitution. He is also prohibited from reapplying for a firearm permit and cannot own or have access to firearms.

The probation terms were negotiated between Perez-Rodriguez's lawyers and the Orange County District Attorney's Office.

Green said in court Wednesday that he was surprised Perez-Rodriguez had previously requested for his firearms to be returned to him.

“As long as you’re on probation, and as long as anyone were to ask me, I don’t think you should have a permit to have a gun, handgun, any type of weapon,” Green told Perez-Rodriguez. “I don’t think you should be permitted to carry a knife. I don’t think you deserve it, to be honest.”

A Goshen woman and her 9-year-old son were struck on the legs by bullet fragments when the gun went off Nov. 26. Perez-Rodriguez, who lives in Sullivan County, left the mall with his family immediately after the shooting, officials said.

Perez-Rodriguez surrendered to police in Monticello late on Nov. 28, after Wallkill town police released video and a still photo from the mall.

The Goshen woman, whose identity was withheld, said in a prepared statement that she believed the sentence is an appropriate punishment for Perez-Rodriguez.

"I wish there was a way to ensure that Mr. Perez-Rodriguez could understand that my son and I will never forget that day because of his carelessness," the woman wrote in a statement read in court by Orange County Assistant District Attorney Jason Rosenwasser. "I’m grateful we were not hurt gravely, but we were victimized by him and our lives have been changed because of him."