nextDoc() implemented.