$completed replaced with Document::COMPLETED