Hm, everything looks good. It would be interesting to test this with negative offsets and positive too, don't you think?