Changed the way bins are updated.