"The device is revealed to be a sort of terraforming machine and generates massive amounts of oxygen, and Quaid and Melina are saved from death as the waves of breathable air sweep across the planet." . . . .