Following Wukong's three cause-and-effect methods of immortality during his time in heaven, he escapes back to his home at the Mountain of Flowers and Fruit. The Court of Heaven finds out what Wukong has done and a battle to capture Wukong ensues. Due to the five levels of immortality Wukong has achieved, his body has become nearly invincible and thus survives the multiple execution attempts by heaven. In the notable last execution, Wukong has placed inside Laozi's furnace in hopes that he will be distilled into the pills of the immortality elixir. Wukong survives 49 days of the samadhi fire in Laozi's furnace and gains the ability to recognize evil. In desperation, the court of heaven seeks help from Buddha, who finally imprisons Wukong under a mountain. Wukong's immortality and abilities ultimately come into use after Guanyin suggest him to be a disciple to Tang Sanzang in the Journey to the West. There, he protects Sanzang from the evil demons who try to eat Sanzang to gain immortality. Wukong's immortality protects him from the various ways the demons try to kill him, such as beheading, disemboweling, poisoning, boiling oil, and so on, none of which kill Wukong.