Remove unused function
Add terminator to lines, in gaps