New publishLine function
Bugfix