added maxPage option to control maximum requested page number manually.