Removed unnecessary code from first implementation of createLine.