- Added command line parameter for max pages as well as added looping logic.