Add support for creating new empty documents