Added binning loop to Main.cpp