Added thread and document