Added AddDocument method.