LINE2D implementation improvements