Extra changes to Bins to fix errors in the bin decision algorithm.
Added distance based cutoff for tasks.
all issues with config shoud be fixed.