Added decrement in loop.  Whoops!