Abstract: An apparatus and a process for cleaning and liquifying an input gas. An engine operates on a portion of cleaned gas and discharges exhaust gases. A heat exchanger transfers heat from the exhaust gases to the portion of the cleaned gas. Apparatus for liquifying the cleaned gas is powered by the engines. Molecular sieves clean the input gas to produce the cleaned gas and are regenerated by the portion of the cleaned gas.