A judge has ordered a series of psychiatric and competency exams for a Fairfield man accused of dancing naked in his backyard in front of two neighborhood children.

Keith Iodice, 39, was out on bond after being arrested Dec. 1, 2005, and accused of downloading child pornography while working at Sikorsky Aircraft in Stratford. U.S. Magistrate Judge William I. Garfinkel will use the test results to determine if Iodice is competent to stand trial.

Iodice had a brain aneurysm when he was 18.

"He has no short-term memory," said his attorney, Frank Riccio Sr. "He does well as long as you plot the whole day out for him."

Iodice was taken into federal custody earlier this month after two boys said he was staring at them and gyrating his hips while naked in his backyard.

Iodice does not face new charges connected with the nude dancing, but he was accused of violating the terms of his release on the child-pornography charges.

Iodice was first arrested in 2005 by agents from the Defense Criminal Investigation Service after he was observed viewing child pornography on a government computer, according to prosecutors. At the time, Iodice was working for the Defense Contract Management Agency on the Black Hawk and Seahawk helicopter programs at Sikorsky.

A review of computer hard drives he used turned up more than 10,000 files, images and movies of suspected child pornography, according to court documents.

After Iodice's arrest, Garfinkel released him on $50,000 bond, but required him to live with his father.

Riccio said Iodice has been trying for more than a year to get into state program that would provide more help and a structured environment.

"We don't know why it's taking so long for an answer," Riccio said.

Meanwhile, Fairfield First Selectman Kenneth Flatto has asked Police Chief David Peck to look into how the nude dancing accusation was handled. The mother of one of the children involved and several neighborhood parents had said Iodice should have been arrested on charges of public indecency or risk of injury to a minor.

Federal Probation Officer Megan Nagy filed a motion to revoke Iodice's bond after the mother called the U.S. attorney's office in Bridgeport.

A Fairfield police spokesman said a glitch in the department's computer system failed to alert an officer that Iodice was free on bond. That glitch has since been fixed.

Peck said in a letter to Flatto that the decision not to arrest Iodice was based in part on his diminished mental capacity.

"Mr. Iodice was on his own property and he was basically treated as a mental patient," Peck told Flatto.