The PSA unit uses a molecular sieve to adsorb hydrocarbons other than hydrogen, resulting in a purified hydrogen stream.