Added an off-by-one offset to arrange for different counting bases