Docsplit implementation.