Added doc-functionality