Solving the gas problem