Added Brandon's NTuplizer code