Works now on multiple page documents.