Oh yeah silly me... Fell in the same "trap" 2 months ago while fixing those functions ,-)

Imported the functions (I was under the impression I couldn't, but I can). And TERM is indeed not needed.