Adding capturing document, and adding getCapturedDoc method.