The parameters of set() have changed. Now using length instead of end for ease of use and better support for negative numbers.