I made a mistake on the gist btw, the `+ 1` here needs to be `+ 1.0`.