Added multipage mode