Changed from (- x 1) to (dec x).