Added support for Untitled Documents

Added support for Untitled Documents.