Create new document instance on every call
Initialize TextGenerator correctly