Added automatic N2O metric calculation