Comments out of date, it doesn't seem to be `startpos` and `endpos`, it is `start` and `end`.