What are collateral glands and what is their functions?

Collateral glands are two highly branched tubular glands in cockroach, which are unequal in size. Both the glands open on the dorsal side of the genital chamber. The secretion produced by these glands form the oothecal case of the ootheca.