This will be the correct result if you add 1, not 0.