A wheelchair user accused of downloading more than 1,500 indecent images of children from the internet has been deemed unfit to stand trial.
David Galey, 54, who denied making and possessing the material, would not be able to follow the process or give his lawyers instructions a judge has ruled.
But a trial will still take place where a jury will rule whether or not Galey 'did the act' which prosecutors accuse him of.
Judge Euan Ambrose, sitting at Swindon Crown Court, heard evidence from a forensic psychiatrist before making the ruling on Monday.
He was told that Galey's IQ had plummeted from normal to being on the borderline of learning difficulties following a stroke in 2007.
And the doctor said the defendant was unable to concentrate for more than five minutes at a time because of damage to his frontal lobe and was also very suggestible.
The judge ruled that Galey, who was not in court for the hearing, would not be capable of giving instructions to his legal team or understand the trial process.
At an earlier hearing he had pleaded not guilty to five charges of making and one of possessing the material.
He is said to have downloaded the indecent images between June 2007 and January 2012.
It is alleged that he had 1,179 pictures and 462 video clips on his computers and other storage media.
Galey, of Bendy Bow, Oaksey, near Malmesbury, is on bail on condition he does not contact his former partner, go to an address in Bromham or have contact with a child under the age of 18.