Changed the function for the co2 production, renamed indices