Bug fix: logText not defined