Extra changes to Bins to fix errors in the bin decision algorithm.