Very minor, but the first value returned is 1 instead of 0.