Add support for importing documents