TreeLine Port and adaptation for _UnderscoreX