max_pages and SAVED_JSON options added