Save page numbers
Deal with groupcodes
Use full example
Added char counting and skips