Could you also add documentation for the new `document` parameter? Thanks :neckbeard: