Doh. $offset is an item index, not a page number.