Add multidoc preparation support