Added sub-doc update functionality