Oxygen production and consumption