Insane in the Mainframe

Act I: Hooray for Zoidberg!
Following a celebration of Zoidberg's ten years with Planet Express, Fry realizes that he hasn't planned for his future, so he spends 94% of his retirement fund (a $100 bill, stored in his sock) on Whif -N- Win lottery tickets. After winning nothing, he decides to open a retirement account for $6, making him immediately $4 overdrawn. At the bank Bender meets his old friend, Roberto, and he and Fry accidentally help him rob the bank.

Act II: What do you say we plead insanity?
Fry and Bender appear in court, represented by the Hyper-chicken. Fry is going to reveal that it was Roberto who robbed the bank, but is cut short after Roberto calls and threatens to kill him. Hyper-chicken convinces them to plead insanity under the reason that he is their lawyer, and is successful. Both Fry and Bender are sent to the HAL Institute for Criminally Insane Robots because being poor was recently classified as a crime and the human asylum is overfilled.

Act III: I find that offensive!
Fry finds the physical exam, designed for robots, quite painful, but is still thought to be a robot, due to the simple fact that the asylum is for robots. He is put in a room with Malfunctioning Eddie, who explodes when introduced to Fry. Unit 2013 shows him around the building and introduces him to the other robots. Bender enjoys himself, but Fry is taking the experience badly, and starts going insane. Eddie is discharged and Fry's new roommate is Roberto, who is in the asylum because he robbed the same bank again. Soon, Fry is "cured"--believing he is a robot.

Act IV: I need to get a disguise!
Fry returns to Planet Express, where he tries to find his primary function. After trial and error, Fry determines he is not a tool bot, a calculator, a food-mo-tron or a tool bot. Fry drinks an exorbitant amount of alcohol to "fuel his power cells" and passes out. Meanwhile, Bender and Roberto escape the asylum.

Act V: Fire lasers!
Roberto holds up the same bank a third time and he and Bender flee to Planet Express. Roberto uses Zoidberg, Hermes, Leela, Amy, the Professor and Bender hostage. He decides to kill some of them, but Fry wakes up and informs everyone that he has found his primary function--battle droid. Fry engages Roberto in battle by swinging his fists in circles around his body. Roberto stabs him, but hits a can of pi-in-1 oil in his coat pocket, which starts leaking and convinces Roberto that he is a battle droid. Roberto throws his knife at Fry, cutting his arm, and jumps out the window where he is arrested. Fry notices the blood from his cut arm and finally realizes he is a human.

Trivia

 * Electroshock therapy was once a common treatment in the past. In a robot asylum however, this is a pleasant treatment.
 * Hermes has a button on his calculator labeled "Carry The One".

Quotes

 * Roberto: Back off! I got hostages! Zoidberg: Hooray! I'm helping! Smitty: Do you have any better hostages?
 * Whitey: Counsellor, what evidence do you offer to support this new plea of insanity? Hyper-Chicken: Well, for one, they done hired me to represent them. Whitey: Insanity plea is accepted.
 * FRY: Negative, bossy meat creature. I know now what my primary function is: I am a battle-droid. Sworn to protect the weak from crazy robots.
 * Hermes: Fry! Don't be a hero! It's not covered by the health plan!
 * Roberto: Help! Help! He is a battle-droid! Somebody help me! Mommy! I'm sorry I spilled the transmission fluid, Mommy! No! No! Don't weld me to the wall, Mommy!

Outside References

 * Nurse Ratchet is a reference to the character Nurse Ratched from One Flew over the Cuckoo's Nest.
 * Another robot is modelled off the Mad Hatter from Alice in Wonderland.

Characters
(In alphabetical order)
 * Amy
 * Bender
 * Fry
 * Hermes
 * Hyper-Chicken
 * Judge Whitey
 * Leela
 * Malfunctioning Eddie
 * Professor Farnsworth
 * Debut: Roberto
 * Smitty and Url
 * Victor
 * Zoidberg

Episode Credits

 * Writer
 * Bill Odenkirk
 * Director
 * Peter Avanzino
 * Voice Actors
 * Billy West
 * Katey Sagal
 * John DiMaggio
 * DVD Commentary
 * Bill Odenkirk
 * David X. Cohen
 * Matt Groening
 * Peter Avanzino
 * Rich Moore