Added a way to query one page at a time. Implemented logger.