Added option to specify last page to parse.