BRATTLEBORO — A 26-year-old New Hampshire man charged with running naked through a small Vermont village has agreed to undergo a mental competency evaluation.

Dylan Gingues, of Enfield, N.H., was arrested Thursday by Bellows Falls police for allegedly showing up naked at gas stations and convenience stores and near the Bellows Falls Central Elementary School, causing the school go into lockdown briefly.

At his arraignment Friday, Gingues first refused to enter a Brattleboro courtroom unless he could do so naked. But he ended up appearing in the courtroom in what appeared to be a police rain jacket.

The Eagle Times in Claremont, N.H., reports that Gingues is facing similar charges in Grafton County, N.H., for appearing naked in public.