Update bin logic.