Loughner is charged with killing six people and wounding 13 more, including Giffords, during a shooting rampage in Tucson on January 8.

The judge ruled that Loughner would remain in custody and undergo treatment for the next four months. A hearing has been set for September 21 to determine whether his condition has improved enough for proceedings to resume.