Disclosed herein is a membrane separation process and system for controlling the relative concentrations of carbon dioxide, oxygen, and nitrogen within a shipping or storage container containing respiring produce. The process uses a first membrane that is selective to carbon dioxide over oxygen and nitrogen, and a second membrane that is selective to oxygen over nitrogen.