Try a new way to create document and delete the log for debugging