Added sub subDoc functionality