Add bookmarks to sub and include sorter_rank.