Added resource binning to preprocessing