Removed function: writeToLine()