Latest TTT code, sans Clement JS