Added ntuple normalization code