God tests Ned Flanders and Ned Flanders fails. When a hurricane wipes out the Flanders' house, Ned and Maude and the kids have to move into a homeless shelter. At the same time, his store, the Leftorium, is looted. Joining together to help their needy neighbors, the people of Springfield, led by Homer, rebuild Flanders' house. But when the house isn't all Ned hoped it would be, he freaks out and verbally assaults everyone in town from Homer to Lisa to Krusty the Clown. After his outburst, Ned enters a mental hospital where he is reacquainted with Dr. Foster, the child psychologist who "cured" him of his anger problems when he was a boy. In a flashback, we see Dr. Foster administering a then-radical form of spank therapy to young Neddy. In the present, the good doctor tries to help Ned get in touch with his anger again to cure him.