UPPER MARLBORO, Md. (AP) — A Crofton man accused of referring to himself as "a joker" and threatening to shoot up his workplace has been released to his parents from a psychiatric facility.

A Prince George's County mental health court judge released 28-year-old Neil E. Prescott to the custody of his parents on Tuesday. Prescott was ordered to continue taking medication and attend counseling while he awaits arraignment.

Prince George's State's Attorney's Office spokesman John Erzen said can only leave his parents' house for medical or legal appointments.

Prescott has been charged with one count of telephone misuse.

Police say on July 27, Prescott, allegedly threatened to load his guns and shoot up his workplace. Police say they found large quantities of ammunition and about two dozen weapons in his apartment.