Added rebinning routine.